home *** CD-ROM | disk | FTP | other *** search
/ Apple Reference & Presen…ibrary 1991 & 1992 Winter / The Apple Reference & Presentations Library CD Apple Partner Edition Winter 91-92.7z / Image.iso / mac / 3-Presentations / Service⁄Support⁄Training / Macintosh Electronic Reference / Macintosh Reference / Macintosh Reference / background_2651.xml next >
Extensible Markup Language  |  1991-12-12  |  21KB  |  398 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>2651</id>
  5.     <filler1>0</filler1>
  6.     <bitmap>BMAP_3695.pbm</bitmap>
  7.     <cantDelete> <false /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <link rel="stylesheet" type="text/css" href="stylesheet_3111.css" />
  11.     <part>
  12.         <id>28</id>
  13.         <type>field</type>
  14.         <visible> <false /> </visible>
  15.         <dontWrap> <true /> </dontWrap>
  16.         <dontSearch> <true /> </dontSearch>
  17.         <sharedText> <false /> </sharedText>
  18.         <fixedLineHeight> <false /> </fixedLineHeight>
  19.         <autoTab> <false /> </autoTab>
  20.         <lockText> <true /> </lockText>
  21.         <rect>
  22.             <left>207</left>
  23.             <top>25</top>
  24.             <right>440</right>
  25.             <bottom>268</bottom>
  26.         </rect>
  27.         <style>shadow</style>
  28.         <autoSelect> <false /> </autoSelect>
  29.         <showLines> <false /> </showLines>
  30.         <wideMargins> <false /> </wideMargins>
  31.         <multipleLines> <false /> </multipleLines>
  32.         <reservedFamily> 0 </reservedFamily>
  33.         <titleWidth>0</titleWidth>
  34.         <icon>0</icon>
  35.         <textAlign>left</textAlign>
  36.         <font>Geneva</font>
  37.         <textSize>10</textSize>
  38.         <textStyle>plain</textStyle>
  39.         <textHeight>15</textHeight>
  40.         <name>Right shadow</name>
  41.         <script></script>
  42.     </part>
  43.     <part>
  44.         <id>8</id>
  45.         <type>button</type>
  46.         <visible> <true /> </visible>
  47.         <reserved5> 0 </reserved5>
  48.         <reserved4> 0 </reserved4>
  49.         <reserved3> 0 </reserved3>
  50.         <reserved2> 0 </reserved2>
  51.         <reserved1> 0 </reserved1>
  52.         <enabled> <true /> </enabled>
  53.         <rect>
  54.             <left>15</left>
  55.             <top>27</top>
  56.             <right>69</right>
  57.             <bottom>75</bottom>
  58.         </rect>
  59.         <style>transparent</style>
  60.         <showName> <false /> </showName>
  61.         <highlight> <false /> </highlight>
  62.         <autoHighlight> <true /> </autoHighlight>
  63.         <sharedHighlight> <false /> </sharedHighlight>
  64.         <family>0</family>
  65.         <titleWidth>0</titleWidth>
  66.         <icon>0</icon>
  67.         <textAlign>center</textAlign>
  68.         <font>Chicago</font>
  69.         <textSize>12</textSize>
  70.         <textStyle>plain</textStyle>
  71.         <name>Main Topics</name>
  72.         <script>on mouseUpgoSearchOption "Main topics"wait while the mouseClickend mouseUp</script>
  73.     </part>
  74.     <part>
  75.         <id>9</id>
  76.         <type>button</type>
  77.         <visible> <true /> </visible>
  78.         <reserved5> 0 </reserved5>
  79.         <reserved4> 0 </reserved4>
  80.         <reserved3> 0 </reserved3>
  81.         <reserved2> 0 </reserved2>
  82.         <reserved1> 0 </reserved1>
  83.         <enabled> <true /> </enabled>
  84.         <rect>
  85.             <left>79</left>
  86.             <top>27</top>
  87.             <right>133</right>
  88.             <bottom>75</bottom>
  89.         </rect>
  90.         <style>transparent</style>
  91.         <showName> <false /> </showName>
  92.         <highlight> <false /> </highlight>
  93.         <autoHighlight> <true /> </autoHighlight>
  94.         <sharedHighlight> <false /> </sharedHighlight>
  95.         <family>0</family>
  96.         <titleWidth>0</titleWidth>
  97.         <icon>0</icon>
  98.         <textAlign>center</textAlign>
  99.         <font>Chicago</font>
  100.         <textSize>12</textSize>
  101.         <textStyle>plain</textStyle>
  102.         <name>Index</name>
  103.         <script>on mouseUpgoSearchOption "Index"wait while the mouseClickend mouseUp</script>
  104.     </part>
  105.     <part>
  106.         <id>10</id>
  107.         <type>button</type>
  108.         <visible> <true /> </visible>
  109.         <reserved5> 0 </reserved5>
  110.         <reserved4> 0 </reserved4>
  111.         <reserved3> 0 </reserved3>
  112.         <reserved2> 0 </reserved2>
  113.         <reserved1> 0 </reserved1>
  114.         <enabled> <true /> </enabled>
  115.         <rect>
  116.             <left>143</left>
  117.             <top>27</top>
  118.             <right>197</right>
  119.             <bottom>75</bottom>
  120.         </rect>
  121.         <style>transparent</style>
  122.         <showName> <false /> </showName>
  123.         <highlight> <false /> </highlight>
  124.         <autoHighlight> <true /> </autoHighlight>
  125.         <sharedHighlight> <false /> </sharedHighlight>
  126.         <family>0</family>
  127.         <titleWidth>0</titleWidth>
  128.         <icon>0</icon>
  129.         <textAlign>center</textAlign>
  130.         <font>Chicago</font>
  131.         <textSize>12</textSize>
  132.         <textStyle>plain</textStyle>
  133.         <name>Look for</name>
  134.         <script>on mouseUpgoSearchOption "Look for"wait while the mouseClickend mouseUp</script>
  135.     </part>
  136.     <part>
  137.         <id>19</id>
  138.         <type>field</type>
  139.         <visible> <true /> </visible>
  140.         <dontWrap> <false /> </dontWrap>
  141.         <dontSearch> <false /> </dontSearch>
  142.         <sharedText> <true /> </sharedText>
  143.         <fixedLineHeight> <true /> </fixedLineHeight>
  144.         <autoTab> <false /> </autoTab>
  145.         <lockText> <true /> </lockText>
  146.         <rect>
  147.             <left>7</left>
  148.             <top>9</top>
  149.             <right>196</right>
  150.             <bottom>25</bottom>
  151.         </rect>
  152.         <style>transparent</style>
  153.         <autoSelect> <false /> </autoSelect>
  154.         <showLines> <false /> </showLines>
  155.         <wideMargins> <false /> </wideMargins>
  156.         <multipleLines> <false /> </multipleLines>
  157.         <reservedFamily> 0 </reservedFamily>
  158.         <titleWidth>0</titleWidth>
  159.         <icon>0</icon>
  160.         <textAlign>left</textAlign>
  161.         <font>Geneva</font>
  162.         <textSize>9</textSize>
  163.         <textStyle>plain</textStyle>
  164.         <textHeight>12</textHeight>
  165.         <name>Instruction 1</name>
  166.         <script></script>
  167.     </part>
  168.     <part>
  169.         <id>20</id>
  170.         <type>button</type>
  171.         <visible> <true /> </visible>
  172.         <reserved5> 0 </reserved5>
  173.         <reserved4> 0 </reserved4>
  174.         <reserved3> 0 </reserved3>
  175.         <reserved2> 0 </reserved2>
  176.         <reserved1> 0 </reserved1>
  177.         <enabled> <true /> </enabled>
  178.         <rect>
  179.             <left>357</left>
  180.             <top>277</top>
  181.             <right>430</right>
  182.             <bottom>293</bottom>
  183.         </rect>
  184.         <style>transparent</style>
  185.         <showName> <false /> </showName>
  186.         <highlight> <false /> </highlight>
  187.         <autoHighlight> <true /> </autoHighlight>
  188.         <sharedHighlight> <true /> </sharedHighlight>
  189.         <family>0</family>
  190.         <titleWidth>0</titleWidth>
  191.         <icon>0</icon>
  192.         <textAlign>center</textAlign>
  193.         <font>Geneva</font>
  194.         <textSize>12</textSize>
  195.         <textStyle>plain</textStyle>
  196.         <name>Quit</name>
  197.         <script>on mouseUpdoMenu "Quit HyperCard"end mouseUpon domenu menuItem                   --// Added by Medior, Inc. 12/9/91global RPStackNameif ","&menuItem&"," is in ",Home,Quit HyperCard," and RPStackName is not "" thenset cursor to 4put RPStackName into shortnamerepeat until offset(":",shortname) = 0delete char 1 to offset(":",shortname) of shortnameend repeatdelete last char of shortnameanswer "This will return to "&shortname&"." with "Cancel" or "OK"if it is "Cancel" then exit domenuset cursor to 4lock screengo RPStackNameunlock screen with dissolve fastsend openCard to this cdexit to HyperCardelse pass doMenuend domenu</script>
  198.     </part>
  199.     <part>
  200.         <id>22</id>
  201.         <type>field</type>
  202.         <visible> <false /> </visible>
  203.         <dontWrap> <true /> </dontWrap>
  204.         <dontSearch> <true /> </dontSearch>
  205.         <sharedText> <false /> </sharedText>
  206.         <fixedLineHeight> <true /> </fixedLineHeight>
  207.         <autoTab> <false /> </autoTab>
  208.         <lockText> <true /> </lockText>
  209.         <rect>
  210.             <left>207</left>
  211.             <top>25</top>
  212.             <right>438</right>
  213.             <bottom>266</bottom>
  214.         </rect>
  215.         <style>scrolling</style>
  216.         <autoSelect> <false /> </autoSelect>
  217.         <showLines> <false /> </showLines>
  218.         <wideMargins> <true /> </wideMargins>
  219.         <multipleLines> <false /> </multipleLines>
  220.         <reservedFamily> 0 </reservedFamily>
  221.         <titleWidth>0</titleWidth>
  222.         <icon>0</icon>
  223.         <textAlign>left</textAlign>
  224.         <font>Geneva</font>
  225.         <textSize>10</textSize>
  226.         <textStyle>plain</textStyle>
  227.         <textHeight>15</textHeight>
  228.         <name>The Hits</name>
  229.         <script>on mouseUpif me is empty then exit mouseUpgoHitwait while the mouseClick -- Throw away extra mouse clicks.end mouseUp</script>
  230.     </part>
  231.     <part>
  232.         <id>24</id>
  233.         <type>field</type>
  234.         <visible> <false /> </visible>
  235.         <dontWrap> <false /> </dontWrap>
  236.         <dontSearch> <false /> </dontSearch>
  237.         <sharedText> <false /> </sharedText>
  238.         <fixedLineHeight> <true /> </fixedLineHeight>
  239.         <autoTab> <false /> </autoTab>
  240.         <lockText> <true /> </lockText>
  241.         <rect>
  242.             <left>206</left>
  243.             <top>9</top>
  244.             <right>436</right>
  245.             <bottom>25</bottom>
  246.         </rect>
  247.         <style>transparent</style>
  248.         <autoSelect> <false /> </autoSelect>
  249.         <showLines> <false /> </showLines>
  250.         <wideMargins> <false /> </wideMargins>
  251.         <multipleLines> <false /> </multipleLines>
  252.         <reservedFamily> 0 </reservedFamily>
  253.         <titleWidth>0</titleWidth>
  254.         <icon>0</icon>
  255.         <textAlign>left</textAlign>
  256.         <font>Geneva</font>
  257.         <textSize>9</textSize>
  258.         <textStyle>plain</textStyle>
  259.         <textHeight>12</textHeight>
  260.         <name>Instruction 3</name>
  261.         <script></script>
  262.     </part>
  263.     <part>
  264.         <id>26</id>
  265.         <type>field</type>
  266.         <visible> <true /> </visible>
  267.         <dontWrap> <false /> </dontWrap>
  268.         <dontSearch> <false /> </dontSearch>
  269.         <sharedText> <false /> </sharedText>
  270.         <fixedLineHeight> <true /> </fixedLineHeight>
  271.         <autoTab> <false /> </autoTab>
  272.         <lockText> <true /> </lockText>
  273.         <rect>
  274.             <left>7</left>
  275.             <top>90</top>
  276.             <right>202</right>
  277.             <bottom>131</bottom>
  278.         </rect>
  279.         <style>transparent</style>
  280.         <autoSelect> <false /> </autoSelect>
  281.         <showLines> <false /> </showLines>
  282.         <wideMargins> <false /> </wideMargins>
  283.         <multipleLines> <false /> </multipleLines>
  284.         <reservedFamily> 0 </reservedFamily>
  285.         <titleWidth>0</titleWidth>
  286.         <icon>0</icon>
  287.         <textAlign>left</textAlign>
  288.         <font>Geneva</font>
  289.         <textSize>9</textSize>
  290.         <textStyle>plain</textStyle>
  291.         <textHeight>12</textHeight>
  292.         <name>Instruction 2</name>
  293.         <script></script>
  294.     </part>
  295.     <part>
  296.         <id>31</id>
  297.         <type>field</type>
  298.         <visible> <false /> </visible>
  299.         <dontWrap> <false /> </dontWrap>
  300.         <dontSearch> <false /> </dontSearch>
  301.         <sharedText> <true /> </sharedText>
  302.         <fixedLineHeight> <false /> </fixedLineHeight>
  303.         <autoTab> <false /> </autoTab>
  304.         <lockText> <true /> </lockText>
  305.         <rect>
  306.             <left>203</left>
  307.             <top>37</top>
  308.             <right>438</right>
  309.             <bottom>267</bottom>
  310.         </rect>
  311.         <style>scrolling</style>
  312.         <autoSelect> <false /> </autoSelect>
  313.         <showLines> <false /> </showLines>
  314.         <wideMargins> <false /> </wideMargins>
  315.         <multipleLines> <false /> </multipleLines>
  316.         <reservedFamily> 0 </reservedFamily>
  317.         <titleWidth>0</titleWidth>
  318.         <icon>0</icon>
  319.         <textAlign>left</textAlign>
  320.         <font>Geneva</font>
  321.         <textSize>10</textSize>
  322.         <textStyle>plain</textStyle>
  323.         <textHeight>13</textHeight>
  324.         <name>Alias record</name>
  325.         <script>-- This field stores the alias record information.on mouseUphide meend mouseUp</script>
  326.     </part>
  327.     <part>
  328.         <id>39</id>
  329.         <type>button</type>
  330.         <visible> <false /> </visible>
  331.         <reserved5> 0 </reserved5>
  332.         <reserved4> 0 </reserved4>
  333.         <reserved3> 0 </reserved3>
  334.         <reserved2> 0 </reserved2>
  335.         <reserved1> 0 </reserved1>
  336.         <enabled> <true /> </enabled>
  337.         <rect>
  338.             <left>3</left>
  339.             <top>3</top>
  340.             <right>444</right>
  341.             <bottom>272</bottom>
  342.         </rect>
  343.         <style>opaque</style>
  344.         <showName> <false /> </showName>
  345.         <highlight> <false /> </highlight>
  346.         <autoHighlight> <false /> </autoHighlight>
  347.         <sharedHighlight> <true /> </sharedHighlight>
  348.         <family>0</family>
  349.         <titleWidth>0</titleWidth>
  350.         <icon>0</icon>
  351.         <textAlign>center</textAlign>
  352.         <font>Chicago</font>
  353.         <textSize>12</textSize>
  354.         <textStyle>plain</textStyle>
  355.         <name>Wrong Fonts Cover</name>
  356.         <script></script>
  357.     </part>
  358.     <part>
  359.         <id>40</id>
  360.         <type>field</type>
  361.         <visible> <false /> </visible>
  362.         <dontWrap> <false /> </dontWrap>
  363.         <dontSearch> <false /> </dontSearch>
  364.         <sharedText> <false /> </sharedText>
  365.         <fixedLineHeight> <false /> </fixedLineHeight>
  366.         <autoTab> <false /> </autoTab>
  367.         <lockText> <true /> </lockText>
  368.         <rect>
  369.             <left>8</left>
  370.             <top>276</top>
  371.             <right>232</right>
  372.             <bottom>294</bottom>
  373.         </rect>
  374.         <style>rectangle</style>
  375.         <autoSelect> <false /> </autoSelect>
  376.         <showLines> <false /> </showLines>
  377.         <wideMargins> <false /> </wideMargins>
  378.         <multipleLines> <false /> </multipleLines>
  379.         <reservedFamily> 0 </reservedFamily>
  380.         <titleWidth>0</titleWidth>
  381.         <icon>0</icon>
  382.         <textAlign>left</textAlign>
  383.         <font>Palatino</font>
  384.         <textSize>12</textSize>
  385.         <textStyle>plain</textStyle>
  386.         <textHeight>16</textHeight>
  387.         <name>Last query</name>
  388.         <script>-- If this stack is locked, then this field serves no purpose.-- Otherwise, it serves the following purpose.-- When you click a section on this card, the section name goes-- into this field. When you return to this field, if the short name-- of the recent content stack (which is saved in a global) is the-- same as the contents of this field then I don‚Äôt need to do a-- lookup. Otherwise, I do.on mouseUphide meend mouseUp</script>
  389.     </part>
  390.     <content>
  391.         <layer>background</layer>
  392.         <id>19</id>
  393.         <text>1. Click an icon to choose a view.</text>
  394.     </content>
  395.     <name>Search options</name>
  396.     <script>The handlers in this bkgnd script are divided into these major areas:-- System messages and related handlers-- Message handler library-- Scripts for Index and Look For----‚Ä¢‚Ä¢ SYSTEM MESSAGES AND RELATED HANDLERS ‚Ä¢‚Ä¢----on resumeStacksend "resumeStack" to this stackcheckMenu trueend resumeStackon closeBackgroundcheckMenu falsepass closeBackgroundend closeBackgroundon openCard-- Store the current location in this stack.checkMenu trueput the short name of this card into whichCardif whichCard is "Welcome" OR whichCard is "Wrong fonts" thenput the short name of card 2 into whichCardend ifstoreHelpInfoMR 10,whichCardpass openCardend openCardon mouseUpshowHits falseput empty into bkgnd field "The hits"put empty into bkgnd field "Last query"pass mouseUpend mouseUpon arrowKey-- In this stack, you can‚Äôt use arrow keys for navigation.-- You can use command 1, 2, 3, and 4.if the selectedField is not empty then pass arrowKeyend arrowKey----‚Ä¢‚Ä¢ MESSAGE HANDLER LIBRARY ‚Ä¢‚Ä¢----on goSearchOption whichCard-- This handler assumes the message was sent by one of the three-- navigation buttons.set cursor to watchif the short name of this card is whichCard then-- You‚Äôre already on that card.set the hilite of the target to trueelse-- Go to that card.lock screengoCardMR whichCardend ifend goSearchOptionon checkMenu boolean-- Set the check mark of the appropriate menu item.if boolean is false then checkMenuItem 1,false elseget the short name of this cardcheckMenuItem 1,it is "Main topics" OR it is "Index" OR ¬¨it is "Look for"end ifend checkMenuon printMR-- Print the current topic or the card.answer "Print this window?" with "Cancel" or "Print" --‚àÜif it is "Cancel" then exit printMR else printContentAreaend printMRon selectQuery whichField,whichLine-- This message is sent when you click one of the Query card fields.if firstVisibleLine(the short name of whichField) > whichLine then-- The line clicked is not fully visible. Make it visible.set scroll of whichField to ¬¨(the scroll of whichField - the textHeight of whichField)end ifunlock screenselectWholeLineMR whichLine,the name of whichFieldend selectQueryon showHits boolean-- Show or hide the right-list objects.if boolean is false AND visible of bkgnd field "The hits" is false then-- Exit so the cursor doesn‚Äôt flash.exit showHitsend iflock screenset visible of bkgnd field "Instruction 3" to booleanset visible of bkgnd field "The hits" to booleanset visible of bkgnd field "Right shadow" to booleanunlock screenend showHitson goHit-- You clicked on a right-hand list. Go to the correponding card.set cursor to watchput word 2 of the clickLine into whichLineput line whichLine of bkgnd field "The hits" into theHitif theHit is empty thenbeepexit goHitend ifselectWholeLineMR whichLine,the name of bkgnd field "The hits"wait 5put textToLineNumMR(theHit,allTopics()) into topicLineif topicLine is empty OR topicLine is 0 then -- This would be a bug.beepanswer "Can‚Äôt find any information for this topic." with "OK" --‚àÜelseput line topicLine of card field "Stack numbers" ¬¨of card "Copyright" into stackNumberput line stackNumber of card field "Queries" ¬¨of card "Main Topics" into whichStackgoStack whichStack,theHit,falseend ifend goHit----‚Ä¢‚Ä¢ SCRIPTS FOR INDEX AND LOOK FOR ‚Ä¢‚Ä¢----on lookItUp theQuery,noDialog-- This is the main lookup handler.-- noDialog is true if you don‚Äôt want a dialog when no hits are found.if theQuery is empty then exit lookItUpif the length of theQuery is 1 then-- The query is only one letter long and we decide that is too vague.showHits falseput empty into bkgnd field "The hits"if noDialog is not true thenbeepanswer "Your request must be more specific than ‚Äú" & ¬¨theQuery & "‚Äù. Please type at least two letters in the box," && ¬¨"then click Get Topics again." with "OK" --‚àÜend ifexit lookItUpend ifset cursor to busyput char 1 to 100 of theQuery into theQuery-- ‚àÜ If the user entered "All topics" then return all of the topics.if theQuery is "All Topics" then put allTopics() into theHitselse put lookFor(theQuery) into theHitsset the scroll of bkgnd field "The Hits" to 0-- Delete the trailing return.if last char of theHits is return then delete last char of theHitsput theHits into bkgnd field "The Hits"if bkgnd field "The hits" is empty thenif noDialog is not true then sayNoHitsFound theQueryend ifshowHits bkgnd field "The hits" is not emptyput theQuery into bkgnd field "Last query"end lookItUpfunction lookFor theQuery-- Return an intersection of the hits for the given query.set cursor to busyget topicNumbers(theQuery)return convertLineNumbersToLines(it,allTopics())end lookForfunction topicNumbers theQuery-- Given the phrase from the user, return a word-delimited list of-- numbers that refer to specific lines in the All Topics field.put empty into topicList-- Look for an exact match in the list of topics:get textToLineNumMR(theQuery,allTopics())if it is not 0 then return it-- Look for an exact match in the list of keys:put givenKeyGetReferent(theQuery & ",",keys()) into aHitif aHit is not empty then return aHit-- Iterate over each word in theQuery & return the intersection:repeat with N = 1 to the number of words in theQueryset cursor to busyput word N of theQuery into theKey-- If the word is a line in the stop list, then go to the next word.if textToLineNumMR(theKey,stopList()) is not 0 then next repeat-- If the word is in the thesaurus, then substitute its equivalent.put textBeginsLine(theKey & ",",thesaurus()) into whichLineif whichLine is not 0 thenput last item of line whichLine of thesaurus() into theKeyend if-- If a line in the keys begins with the word, then get the hits.put givenKeyGetReferent(theKey,keys()) into aHitif topicList is empty then put aHit into topicListelse put intersection(aHit,topicList) into topicListif topicList is empty then return emptyend repeatreturn topicListend topicNumbersfunction convertLineNumbersToLines theNumbers,theContainer-- Given numbers separated by spaces, return the sorted-- list of lines they correspond to.if word 1 of theNumbers is empty then return emptyput the number of words of theNumbers into totalrepeat with N = 1 to totalset cursor to busyget word N of theNumbersif it is an integer thenput line it of theContainer & return after theResultelse beepend repeatif last line of theResult is empty then delete last line of theResultsort theResultreturn theResultend convertLineNumbersToLinesfunction givenKeyGetReferent theKey,table-- Given a key (item 1 of table), return the referent.-- IMPORTANT: This function allows partial matching since it-- doesn‚Äôt look for the comma, that is, <return & theKey & ",">if theKey is empty then return emptyput textBeginsLine(theKey,table) into whichLineif whichLine is 0 then return empty else-- Return 2nd through Nth item.return item 2 to (the number of items in line whichLine of table) ¬¨of line whichLine of tableend ifend givenKeyGetReferentfunction intersection listA,listB-- Return a space-delimited intersection of two given lists.-- Assumes items in a list are words, that is, delimited by spaces.put empty into theAnswer-- Iterate over the shortest list:if the number of words of listA > the number of words of listB thenput listA into tempput listB into listAput temp into listBend if-- Pad beginning and end with spaces so "is in" doesn't misfire on-- the first and last words of the list:put space & listA & space into listAput space & listB & space into listBrepeat with N = 1 to the number of words of listAset cursor to busyget space & word N of listA & spaceif it is in listB then put it after theAnswerend repeatreturn theAnswerend intersectionfunction allTopicsreturn card field "All topics" of card "Copyright"end allTopicsfunction keysreturn card field "Keys" of card "Copyright"end keysfunction stopListreturn card field "Stop list" of card "Copyright"end stopListfunction thesaurusreturn card field "Thesaurus" of card "Copyright"end thesaurusfunction stackNumbersreturn card field "Stack numbers" of card "Copyright"end stackNumberson sayNoHitsFound theQuery-- Indicate that no hits were found for the given query.beepanswer "Couldn't find any topics related to ‚Äú" ¬¨& theQuery & "‚Äù. Please try a different word or phrase."  with "OK" --‚àÜend sayNoHitsFound</script>
  397. </background>
  398.